package com.qtu.product_service.feign.impl;

import com.qtu.product_service.feign.HomeFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class HomeFeignFallBack implements HomeFeign {
    @Override
    public String setByTime(String key, Object value, long time) {
        log.error("redis-service 店铺登录信息设置失败！ key="+key+" value="+value+" time="+time);
        return null;
    }

    @Override
    public String set(String key, Object value) {
        log.error("redis-service 商品存入失败！ key="+key+" value="+value);
        return null;
    }

    @Override
    public Object get(String key) {
        log.error("redis-service 商品查询失败！ key="+key);
        return null;
    }

    @Override
    public String exists(String key) {
        log.error("redis-service 商品不存在！ key="+key);
        return null;
    }

    @Override
    public String delete(String... key) {
        log.error("redis-service 删除商品失败！ key="+key);
        return null;
    }
}
